import axios from 'axios'
// 设置请求路径
const request = axios.create({
    baseURL:'http://192.168.0.119:9090',//域名
    access_token:localStorage.getItem('token'),
})
// 使用路由拦截设置请求头
request.interceptors.request.use((req) => {
        let access_token = localStorage.getItem('token')
        if(access_token){
            req.headers.token = access_token;
        }
        return req
    })
export default request;